package client.comm.commlib.comm_ui.bean

import android.net.Uri
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import java.io.Serializable
import java.util.*

@Parcelize
class ImageFolder(
    var name: String? = "",
    var path: String? = "",
    var albumPath: String? = "",
    var imgUri: Uri? = null,
    var images: MutableList<Image> = ArrayList<Image>()
) : Parcelable {

    override fun equals(o: Any?): Boolean {
        if (o != null && o is ImageFolder) {
            if (o.path == null && path != null) return false
            val oPath = o.path!!.toLowerCase()
            return oPath == path!!.toLowerCase()
        }
        return false
    }
}